<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>

    <title>登录</title>

    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
    <link href="https://cdn.bootcss.com/twitter-bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/twitter-bootstrap/3.4.1/js/bootstrap.min.js"></script>
    <script type="text/javascript">
    </script>
</head>

    <script>
        window.onclick=function (){
            document.getElementById("a").onclick=function (){
                this.src="codeDemo1?time="+new Date().getTime();
            }
        }
    </script>
    <style>
        .bigdiv{
            border:4px solid;
            border-color: lightgray;
            width: 50%;
            height: 50%;


            margin:0 auto;
            margin-top: 150px;
            padding-top: 30px;
            padding-bottom: 50px;
            padding-left: 60px;
            padding-right: 50px;
        }
    </style>
<body background="images/111.jpg">
    <div class="bigdiv"  >
        <div style="text-align: center"><h3>管理员登录</h3></div>

        <form class="form-horizontal" action="/user/findAdministrator" method="post">
            <!-- 账号 -->
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">管理员账号</label>
                <div class="col-sm-8">
                    <input type="text" name="username" class="form-control" id="inputEmail3" placeholder="请输入管理员名">
                </div>
            </div>
            <!-- 密码 -->
            <div class="form-group">
                <label for="inputPassword3" class="col-sm-2 control-label">密码</label>
                <div class="col-sm-8">
                    <input type="password" name="password" class="form-control" id="inputPassword3" placeholder="请输入管理员密码">
                </div>
            </div>
            <!-- 验证码 -->
            <div class="" >
                <label for="inputPassword4" class="col-sm-2 control-label">验证码</label>
                <div style="">
                    <div class="col-sm-4">
                        <input type="text" name="Vcode" class="form-control" id="inputPassword4" placeholder="验证码">
                    </div>
                    <div>
                        <a id="a" href="javascript:void(0)" ><img style="height: 35px" src="/VcodeServlet"></a>
                    </div>
                </div>

            </div>

            <div class="form-group" style="padding-left: 300px;padding-top: 30px">
                <div >
                    <button type="submit" class="btn btn-default">登录</button>
                </div>
            </div>
        </form>
        <div class="">
            <strong>${login_code}${login_error}</strong>
        </div>

    </div>
</body>
</html>
